package com.recource.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.recource.constant.StaticConstant;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_type")
public class Huodongleixin {

    @TableId(value = "id", type = IdType.AUTO)
    private String id;
    @TableField("name")
    private String name;
    @TableField("time")
    @JsonFormat(pattern = StaticConstant.DATE_FORMAT, timezone = StaticConstant.GMT8)
    private Date time = new Date();
}